package com.itcs.app.pay.model;

import java.io.Serializable;

/**
 * 被扫（条形码支付）参数
 * 
 * @author LiuPeng
 * @date 2018年3月18日
 * 
 */
public class TradePayModel implements Serializable {

	private static final long serialVersionUID = -3705799841886085761L;
	
	/**
	 * @Fields 支付渠道
	 */
	private String payChannelCode;
	/**
	 * @Fields orderName : 订单名称
	 */
	private String orderName;

	/**
	 * @Fields orderDetail : 订单详情
	 */
	private String orderDetail;

	/**
	 * @Fields orderAmt : 订单金额(分)
	 */
	private int orderAmt;

	/**
	 * @Fields reserved : 商户保留域
	 */
	private String reserved;

	/**
	 * @Fields tradeNo : 商户订单号
	 */
	private String tradeNo;

	/**
	 * @Fields authCode : 授权码(条形码)
	 */
	private String authCode;
	
	/**
	 * @Fields ip : 用户ip
	 */
	private String ip;

	/** 
	 * 创建一个新的实例 TradePayModel.  
	 *
	 * @param payChannelCode
	 * @param orderName
	 * @param orderDetail
	 * @param orderAmt
	 * @param reserved
	 * @param tradeNo
	 * @param authCode
	 * @param ip 
	 */
	public TradePayModel(String payChannelCode, String orderName, String orderDetail, int orderAmt, String reserved, String tradeNo, String authCode,
			String ip) {
		super();
		this.payChannelCode = payChannelCode;
		this.orderName = orderName;
		this.orderDetail = orderDetail;
		this.orderAmt = orderAmt;
		this.reserved = reserved;
		this.tradeNo = tradeNo;
		this.authCode = authCode;
		this.ip = ip;
	}

	/**
	 * @return the payChannelCode
	 */
	public String getPayChannelCode() {
		return payChannelCode;
	}

	/**
	 * @param payChannelCode the payChannelCode to set
	 */
	public void setPayChannelCode(String payChannelCode) {
		this.payChannelCode = payChannelCode;
	}

	/**
	 * @return the orderName
	 */
	public String getOrderName() {
		return orderName;
	}

	/**
	 * @param orderName
	 *            the orderName to set
	 */
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	/**
	 * @return the orderDetail
	 */
	public String getOrderDetail() {
		return orderDetail;
	}

	/**
	 * @param orderDetail
	 *            the orderDetail to set
	 */
	public void setOrderDetail(String orderDetail) {
		this.orderDetail = orderDetail;
	}

	/**
	 * @return the orderAmt
	 */
	public int getOrderAmt() {
		return orderAmt;
	}

	/**
	 * @param orderAmt
	 *            the orderAmt to set
	 */
	public void setOrderAmt(int orderAmt) {
		this.orderAmt = orderAmt;
	}

	/**
	 * @return the reserved
	 */
	public String getReserved() {
		return reserved;
	}

	/**
	 * @param reserved
	 *            the reserved to set
	 */
	public void setReserved(String reserved) {
		this.reserved = reserved;
	}

	/**
	 * @return the tradeNo
	 */
	public String getTradeNo() {
		return tradeNo;
	}

	/**
	 * @param tradeNo
	 *            the tradeNo to set
	 */
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	/**
	 * @return the authCode
	 */
	public String getAuthCode() {
		return authCode;
	}

	/**
	 * @param authCode
	 *            the authCode to set
	 */
	public void setAuthCode(String authCode) {
		this.authCode = authCode;
	}

	/**
	 * @return the ip
	 */
	public String getIp() {
		return ip;
	}

	/**
	 * @param ip the ip to set
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	@Override
	public String toString() {
		return "TradePayModel [payChannelCode=" + payChannelCode + ", orderName=" + orderName + ", orderDetail="
				+ orderDetail + ", orderAmt=" + orderAmt + ", reserved=" + reserved + ", tradeNo=" + tradeNo
				+ ", authCode=" + authCode + ", ip=" + ip + "]";
	}
	
}
